<?php

namespace App\Http\Controllers;

use App\Library\Service\IndexService;
use Illuminate\Http\JsonResponse;

class IndexController extends BaseController
{
    public function __construct(IndexService $service)
    {
        return $this->service = $service;
    }

    /**
     * index
     * @return JsonResponse
     */
    public function index(): JsonResponse
    {
        return $this->service->index();
    }
}
